@model IEnumerable<user_entity>
@{
    ViewData["Title"] = "领导信箱";
}
<div class="clearfix navbar-clear"></div>
<div class="m2ban">
    <div class="container clearfix">
        <div class="m2itmName m2itmName_icon2">
        </div>
        <p class="wow fadeInUp">

        </p>
    </div>
</div>
<div class="clearfix navbar-clear"></div>

<div class="container">
    <table class="table table-bordered">
        <thead>
            <tr>
                <th>
                    @Html.DisplayNameFor(model => model.avatar)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.real_name)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.post)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.intro)
                </th>
                <th>

                </th>
            </tr>
        </thead>
        <tbody>
            @if (Model.Count() == 0)
            {
                <tr>
                    <td colspan="5" style="text-align: center;">
                        <div class="layui-inline">--没有记录--</div>
                    </td>
                </tr>
            }
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        <img src="@item.avatar" style="max-width: 140px; max-height: 140px;" />
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.real_name)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.post)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.intro)
                    </td>
                    <td>
                        <a asp-action="write" asp-route-id="@item.id">写信</a> |
                        <a asp-action="mail_list" asp-route-id="@item.id">查看信件</a>
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>
